package test;

import java.util.Scanner;

public class Tit4 {
	public static void main(String[] args) {
		System.out.println("输入华氏度");
		Scanner scan = new Scanner(System.in);
		double centigrade;
		double fagoting= scan.nextDouble();
		centigrade = (fagoting - 32)*5/9;
		System.out.println("摄氏度" + centigrade);
		System.out.println("输入摄氏度");
		centigrade= scan.nextDouble();
		fagoting=centigrade*9/5 + 32;
		System.out.println("华氏度" + fagoting);
	}
}
